package com.example.hxds.bff.driver.feign;

import com.example.hxds.bff.driver.controller.form.RemoveLocationCacheForm;
import com.example.hxds.bff.driver.controller.form.UpdateLocationCacheForm;
import com.example.hxds.bff.driver.controller.form.UpdateOrderLocationCacheForm;
import com.example.hxds.common.util.R;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;


/**
 * 代理司机微服务api
 */
@FeignClient(value = "hxds-mps")
public interface MpsServiceApi {

    /**
     * 更新司机位置缓存
     * @param form
     * @return
     */
    @PostMapping("/driver/location/updateLocationCache")
    R updateLocationCache(UpdateLocationCacheForm form);


    /**
     * 移除司机位置缓存
     * @param form
     * @return
     */
    @PostMapping("/driver/location/removeLocationCache")
    R removeLocationCache(RemoveLocationCacheForm form);


    /**
     * 订单位置缓存
     * @param form
     * @return
     */
    @PostMapping("/driver/location/updateOrderLocationCache")
    R updateOrderLocationCache(UpdateOrderLocationCacheForm form);
}
